package warthog.scangen;


public final class Literal extends Regex {
	private CharClass cc;
	public Literal(CharClass cc) { this.cc=cc; }
	public Literal(int c) {
		cc=new CharClass(true);
		cc.addPoint(c);
	}
	@Override
	public void connect(Node start, Node end) {
		start.edge(new Edge(cc, end));
	}
}
